src/config/configSmartSession.ts
.config/index.ts
getPublicKey
.
requestPermission
modal appears for the user to approve using their wallet.
prepareCalls
makes an RPC call to the Blockchain API.
sendPrepareCalls
makes an RPC call to the Blockchain API.
util/prepareCalls.js
. All the RPC calls are performed to https://rpc.walletconnect.org/v1/wallet?projectId=<PROJECT-ID>
.
grantPermissions
request, to allow an explicit address to execute specific calls.
src/config/configSmartSession.ts
.
generateRequest
function and use its information to invoke grantPermission, prompting the user for wallet approval of the action.test@gmail.com
. Change it to test+smart-sessions@gmail.com
to enable smart session support.
wallet_prepareCalls
.wallet_sendPreparedCalls
with that signature.wallet_getCallsStatus
to check when it’s confirmed.wallet_grantPermissions
does not exist / is not available.’